<template>
	<info v-if="isLogin"></info>
	<login v-else></login>

</template>

<script>
	import login from "../../components/login.nvue"
	import info from "../../components/info.vue"
	export default {
		components: {
			login,
			info
		},
		data() {
			return {
				isLogin: false
			}
		},
		created(){
			let token  = uni.getStorageSync("token");
			
			if(token){
				this.isLogin = true;
			}else{
				this.isLogin = false;
			}
			
		},
		methods: {

		}
	}
</script>

<style>

</style>
